#!/usr/local/bin/python3
# -*- coding: UTF-8 -*-
"""
@author:apple
@file:demo02.py
@time:2021/07/22
"""

class Manager:
    ...
    def outer(self,func):
        def inner(*args,**kwargs):
            ret = func(*args,**kwargs)
            return ret
        return inner

manager = Manager()



@manager.outer
def test01():
    ...
    print('111')


def outer01(func):
    print('outer01')
    def inner(*args,**kwargs):
        ...
        print('inner outer01')
        ret = func(*args,**kwargs)
        return ret
    return inner

def outer02(func):
    print('outer02')
    def inner(*args,**kwargs):
        ...
        print('inner outer02')
        ret = func(*args,**kwargs)
        return ret
    return inner


@outer02
@outer01
def test03():
    """
    test03 = outer01(test03)
    test03 = outer02(test03)
    """
    print('test03')

if __name__ == '__main__':
    pass
    test03()